layui.define(function(exports) {
	var classift =[{
		name:"道路工程",
		code:"100000",
		child:[{
			name:"公路-高速公路",
			code:"/ceca_two/modules/costnorm/way/wayTwo.html",
		},{
			name:"公路-一级公路",
			code:"/ceca_two/modules/costnorm/way/wayTwo.html"
		},{
			name:"公路-二级公路",
			code:"/ceca_two/modules/costnorm/way/wayTwo.html"
		},{
			name:"公路-三级公路",
			code:"/ceca_two/modules/costnorm/way/wayTwo.html"
		},{
			name:"公路-四级公路",
			code:"/ceca_two/modules/costnorm/way/wayTwo.html",
		},{
			name:"城市道路-快速路",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"城市道路-主干路",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"城市道路-次干路",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"城市道路-支路",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"城市道路-里巷道路",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"机场场道工程",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"厂砖专用道路工程",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"林区专用道路工程",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"其他专用道路工程",
			code:"/ceca_two/modules/costnorm/city/urbanDuctTwo.html"
		},{
			name:"其他道路工程",
			code:"1000003"
		}]
	},{
		name:"桥涵工程",
		code:"200000",
		child:[{
			name:"桥梁-铁路桥",
			code:"/ceca_two/modules/costnorm/bridge/bridgeTwo.html"
		},{
			name:"桥梁-公路桥",
			code:"/ceca_two/modules/costnorm/bridge/bridgeTwo.html"
		},{
			name:"桥梁-城市桥",
			code:"/ceca_two/modules/costnorm/bridge/bridgeTwo.html"
		},{
			name:"桥梁-人行桥",
			code:"/ceca_two/modules/costnorm/bridge/bridgeTwo.html"
		},{
			name:"涵洞工程",
			code:"2000002"
		}]
	},{
		name:"园林绿化",
		code:"300000",
		child:[{
			name:"园林小路",
			code:"/ceca_two/modules/costnorm/landscaping/landscapingTwo.html"
		},{
			name:"景观",
			code:"/ceca_two‘/modules/costnorm/landscaping/landscapingTwo.html"
		},{
			name:"绿化",
			code:"/ceca_two/modules/costnorm/landscaping/landscapingTwo.html"
		},{
			name:"园林配套（喷管、照明、音乐等）",
			code:"/ceca_two/modules/costnorm/landscaping/landscapingTwo.html"
		}]
	},{
		name:"轨道交通工程",
		code:"400000",
		child:[{
			name:"铁路工程",
			code:"/ceca_two/modules/costnorm/landscaping/landscapingTwo.html"
		},{
			name:"城市轨道交通工程",
			code:"/ceca_two/modules/costnorm/landscaping/landscapingTwo.html"
		},{
			name:"其他轨道工程",
			code:"/ceca_two/modules/costnorm/landscaping/landscapingTwo.html"
		}]
	}]
	for(var i=0;i<classift.length;i++){
		$("#classify .classifyList").append("<li data-code="+classift[i].code+">"+classift[i].name+"</li>");
	}
	$("#classify").find("li").click(function(){
//		console.dir(this);
//		if($(this).index() == 0) return false;
		var code =$(this).data("code");
		$.each($.map(classift,function(data,index){
			$("#site .classifyList > li").remove();
			return data.code ==code?data.child:null;
		}),function(index,data){
			$("#site .classifyList").append("<li data-code="+data.code+">"+data.name+"</li>");
		});
	});
	$(".classifyNext").bind('DOMNodeInserted', function(e) {
		for(var i=0;i<classift.length;i++){
			var child=classift[i].child;
			for(var j=0;j<child.length;j++){
				console.log(child[j].code);
				}
			}
		
	});
	$("#jump").click(function(){
		if($(".classifyNext").text() ==(null |"请选择"))alert("请选择工程分类");
//		if()
	});
	
	exports('municipalshareOne', {}); //注意，这里是模块输出的核心，模块名必须和use时的模块名一致
});